package com.example.word.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "用户信息")
public class UserInfoVO {

    /**
     * 用户昵称
     */
    @NotBlank(message = "昵称不能为空")
    @ApiModelProperty(name = "nickname", value = "昵称", dataType = "String")
    private String nickname;
    /**
     * 院系
     */
    @NotBlank(message = "院系不能为空")
    @ApiModelProperty(name = "faculty", value = "院系", required = true, dataType = "String")
    private String faculty;

    @NotNull(message = "年龄不能为空")
    @ApiModelProperty(name = "age", value = "年龄", dataType = "Integer")
    private Integer age;

    @NotBlank(message = "性别不能为空")
    @ApiModelProperty(name = "sex", value = "性别", required = true, dataType = "String")
    private String sex;
    @NotBlank(message = "地址不能为空")
    @ApiModelProperty(name = "address", value = "地址", required = true, dataType = "String")
    private String address;
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(name = "phone", value = "手机号", required = true, dataType = "String")
    private String phone;
    @NotBlank(message = "工号不能为空")
    @ApiModelProperty(name = "sno", value = "工号", required = true, dataType = "String")
    private String sno;

}
